package com.neusoft.neuiotms.dcom.repository.problem;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.problem.ProblemAssignment;

public interface ProblemAssignmentRepository
        extends JpaRepository<ProblemAssignment, Long>, CustomizedProblemAssignmentRepository {

    ProblemAssignment findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    void deleteByWorkOrderNum(String workOrderNum);

    ProblemAssignment findByWorkOrderNum(String workOrderNum);
}
